# encoding: utf-8
# @project: st2111 
# @file: re_charset.py
# @time: 2023/4/6 14:44
# @author: abcque
# @license: (C) Copyright 2013-2021
# @contact: abcque@outlook.com
# @IDE: PyCharm
# @desc:

from chapter5.regular_expression.testre.re_test_patterns import test_patterns

if __name__ == "__main__":
    text = 'abbaabbba'
    patterns = [
        ("[ab]", "字符 a 或者字符 b"),
        ("a[ab]+", "字符 a 后面跟着 重复 1 次或者多次的 a 或者 a"),
        ("a[ab]+?", "字符 a 后面跟着 重复 1 次或者多次的 a 或者 a"),

    ]
    test_patterns(text=text, patterns=patterns)
